package com.timebank.score.service;

import com.timebank.common.core.web.pojo.AjaxResult;
import com.timebank.score.pojo.entity.Goods;
import com.timebank.score.pojo.vo.GoodsVO;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品 接口类
 * @author shiliuyinzhen
 */
@Service
public interface GoodsService {

    /**
     * 新增商品
     * @param goods
     * @return
     */
    AjaxResult addGoods(Goods goods);

    /**
     * 获取商品列表
     * @param goods
     * @return
     */
    List<GoodsVO> getGoodsList(Goods goods);

    /**
     * 批量删除商品
     * @param goodsIds
     * @return
     */
    AjaxResult batchDeleteGoods(Long[] goodsIds);

    /**
     * 修改商品信息
     * @param goodsId
     * @param goods
     * @return
     */
    AjaxResult updateGoodsById(Long goodsId,Goods goods);

    /**
     * 兑换商品
     * @param goodsId
     * @return
     */
    AjaxResult exchangeGoods(Long goodsId);
}
